extends TextureButton

const plate_texture_normal := preload("res://assets/sprites/ui/button/normal/normal.png")
const plate_texture_pressed := preload("res://assets/sprites/ui/button/pressed/pressed.png")

@onready var plate = $Plate

func _on_button_down() -> void:
	plate.texture = plate_texture_pressed

func _on_button_up() -> void:
	if not is_hovered():
		plate.texture = plate_texture_normal

func _on_mouse_entered() -> void:
	plate.texture = plate_texture_pressed

func _on_mouse_exited() -> void:
	plate.texture = plate_texture_normal
